﻿/**
* 用户列表Grid
* @author luning
* @date 2014/8/8
*/
Ext.define('LNA.view.system.user.Grid', {
    extend: 'LNA.view.base.Grid',
    alias: 'widget.system_UserList_Grid',

    //requires: ['LNA.lib.Util'],

    border: false,
    autoFit: true,
    forceFit: true,

    initComponent: function () {
        // var store = Ext.create('Eway.store.serviceDemandReport.supportSituation.SupportCase');
        // store.loadPage(1);
        Ext.apply(this, {
            initRegion: true,
            store: this.store,
            tbar: ['->', {
                text: '查询',
                iconCls: 'queryBtn',
                action: 'query'
            }, {
                text: '操作',
                iconCls: 'detailBtn',
                action: 'operation'
            }],
            viewConfig: {
                forceFit: true,
                stripeRows: true
            },
            columns: [Ext.create('Ext.grid.RowNumberer', { text: '序号', align: 'right', width: 50, sortable: false }),
					{
					    header: '登录名',
					    //width: 135,
					    dataIndex: 'userId'
					},
					{
					    header: '姓名',
					    dataIndex: 'name'
					},
					{
					    header: '角色',
					    dataIndex: 'role'
					},
					{
					    header: '部门',
					    dataIndex: 'org'
					},
					{
					    header: '是否启用',
					    dataIndex: 'isEnabled'
					},
					{
					    header: '是否改密',
					    dataIndex: 'isChangePwd'
					}, {
					    header: '创建时间',
					    dataIndex: 'createTime'
					}, {
					    header: '描述',
					    dataIndex: 'description'
                    }],
            bbar: Ext.create('Ext.PagingToolbar', {
                store: this.store,
                displayInfo: true,
                displayMsg: '总共：{2}条，显示{0}-{1}'
            })
        });
        this.callParent(arguments);
    }
});